######
### Information for replicating the analysis for "Why Is It So Hard to Counteract Wealth Inequality? Evidence from the United Kingdom"
### World Politics
###
### Mads Andreas Elkjær, Ben Ansell, Laure Bokobza, Asli Cansunar, Matthias Haslberger and Jacob Nyrup 
######

All code to replicate the analysis is written in R. 7 files in total are used to replicate the analysis in the article: 2 r-scripts and 5 datafiles.

The scripts use the R package "pacman" to install and load relevant packages, which is handled by the function pacman::p_load(). To make sure the function runs, the replicator should have "pacman" installed.

When running the analysis it is important that 00-helperfunctions.R is loaded into R. This file contains a list of extra functions used throughout the analysis.

All of the analyses is contained in the file 01_mainanalysis.R. First, we replicate all the results in the main paper. Then we replicate all of the appendixes included in the supplementary materials.

### List of r-scripts

00-helperfunctions.R
01-mainanalysis.R

### List of datasets

df_main.rds
df_inh_database.rds
df_conjoint.rds
df_experiment.rds
df_data_tax_triplets.csv